package test.jgroups;

import org.jgroups.JChannel;

public class Sender {
	private JChannel jChannel;
	MessageFrame messageFreme;

	public Sender(String props, String groupName) throws Exception {
		jChannel = new JChannel(props);
		jChannel.connect(groupName);
	}

	public Sender(String groupName) throws Exception {
		this(JChannel.DEFAULT_PROTOCOL_STACK, groupName);
	}

	public static void main(String[] args) {
		String clusterName = "TestJgroups";

		try {
			Sender sender = new Sender(clusterName);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}